class Person:
    def __init__(self, name, age, height):
        self.name = name
        self.age = age
        self.height = height

    def run(self):
        print(self.name + '在跑步')

    def eat(self):
        print(self.name + '在吃饭')

# 实例化对象
elephant = Person('大象', 18, 180)
print(elephant.name, elephant.age, elephant.height)
elephant.run()
tiger = Person('老虎', 20, 200)
print(tiger.name, tiger.age, tiger.height)
tiger.eat()
print('-' * 50)
print(dir(elephant))
